<template>
  <div>

    <el-header height="70px">
      <!--头部标题-->
      <div>
        <img src="" />
        <el-menu
            :default-active="activeIndex"
            class="el-menu-demo" mode="horizontal"
            @select="handleSelect"
            background-color="#545c64" text-color="#eaedf1" active-text-color="#e12923"

        >
          <el-menu-item index="1">首页</el-menu-item>
          <el-menu-item index="2">在线靶场</el-menu-item>
          <el-menu-item index="3">网安工具</el-menu-item>
          <el-menu-item index="4">搜索</el-menu-item>
        </el-menu>
      </div>

      <el-button type="info" @click="logout">退出</el-button>
    </el-header>


  </div>
</template>

<script>
export default {
  name: "Header",
  data() {

    return {

    }
  },
}
</script>

<style lang="less" scoped>
// 水平导航栏去除底部白边
.el-menu.el-menu--horizontal {
  border-bottom: 0;
}

.el-header {
  background-color: #545c64;
  display: flex;
  justify-content: space-between;
  padding-left: 300px;
  align-items: center;
  color: #fff;
  font-size: 20px;

  > div {
    display: flex;
    align-items: center;

  }
}
</style>
